// src/someComponent.js
import { formatDate, getCurrentDate, compareDates,removeSpaces ,isValidEmail} from '../src/index';

const today = new Date();
console.log(formatDate(today));  // 输出 '2025-02-12'
console.log(getCurrentDate());   // 输出当前日期 '2025-02-12'
console.log(compareDates(new Date('2025-02-10'), today));  // 输出时间差，单位为天

console.log(removeSpaces('123 456 789'));
console.log(isValidEmail('gost@163.com'));

